package org.yeasy.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.data.redis.core.RedisTemplate;

import java.util.Arrays;

@SpringBootApplication
public class SpringRedisDemoApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SpringRedisDemoApplication.class, args);
        String[] beanNamesForType = context.getBeanNamesForType(RedisTemplate.class);
        System.out.println("beanNamesForType = " + Arrays.toString(beanNamesForType));

    }
}
